/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using iMES.Entity.SystemModels;

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "Bom基础",TableName = "BOM_Foundation",DBServer = "SysDbContext")]
    public partial class BOM_Foundation:SysEntity
    {
        /// <summary>
       ///基础ID
       /// </summary>
       [Key]
       [Display(Name ="基础ID")]
       [Column(TypeName="uniqueidentifier")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public Guid ID { get; set; }

       /// <summary>
       ///BOM编号
       /// </summary>
       [Display(Name ="BOM编号")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string BomNumber { get; set; }

       /// <summary>
       ///BOM主题
       /// </summary>
       [Display(Name ="BOM主题")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string BomTheme { get; set; }

       /// <summary>
       ///默认BOM
       /// </summary>
       [Display(Name ="默认BOM")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int DefaultBom { get; set; }

       /// <summary>
       ///版本
       /// </summary>
       [Display(Name ="版本")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Version { get; set; }

       /// <summary>
       ///成品名称
       /// </summary>
       [Display(Name ="成品名称")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string ProductName { get; set; }

       /// <summary>
       ///日产量
       /// </summary>
       [Display(Name ="日产量")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string DailyProduction { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Notes { get; set; }

       /// <summary>
       ///新建文本文档.PDF
       /// </summary>
       [Display(Name ="新建文本文档.PDF")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Text { get; set; }

       /// <summary>
       ///上传
       /// </summary>
       [Display(Name ="上传")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string Upload { get; set; }

       /// <summary>
       ///创建人ID
       /// </summary>
       [Display(Name ="创建人ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? CreateID { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Creator { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? CreateDate { get; set; }

       /// <summary>
       ///最后修改人ID
       /// </summary>
       [Display(Name ="最后修改人ID")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? ModifyID { get; set; }

       /// <summary>
       ///最后修改人
       /// </summary>
       [Display(Name ="最后修改人")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string Modifier { get; set; }

       /// <summary>
       ///最后修改人时间
       /// </summary>
       [Display(Name ="最后修改人时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? ModifyDate { get; set; }

       /// <summary>
       ///成品类型
       /// </summary>
       [Display(Name ="成品类型")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       public string FinishedProduct { get; set; }

       
    }
}